package Thread;

class Demo extends Thread
{
		public void run()
		{
				for(int x=0; x<60; x++)
					System.out.println(this.getName() + "run--" + x);
		}
}

class ThreadDemo1
{
		public static void main(String[] args)
		{
				Demo d = new Demo();
				
				Demo d1 = new Demo();
				d1.setName("A02 ");
				d.setName("A01 ");
				
				d.start();
				d1.start();
				
				for(int x=0; x<60; x++)
					System.out.println("hello world--" + x);
		}
}